﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Work1
{
    class Superman:Animal,IFlyable
    {

        public string name { get; set; }

        public Superman(string name,string eat) :base(eat)
        {
            this.name = name;
        }

        public void Fly()
        {
            Console.WriteLine("{0}在Fly",this.name);
        }

        public void Land()
        {
            Console.WriteLine("{0}在Land",this.name);
        }

        public void TakeOff()
        {
            Console.WriteLine("{0}在TakeOff", this.name);
        }
        public override void Eat()
        {
            base.Eat();
            Console.WriteLine("我会{0}",this.eat);
        }
    }
}
